package com.songcha.module_bookshelf.ui.activity

import android.os.Bundle
import android.view.View
import com.songcha.library_base.base.BaseActivity
import com.songcha.module_bookshelf.R
import com.songcha.module_bookshelf.ui.fragment.bookshelf.BookShelfFragment
import com.songcha.module_bookshelf.databinding.BookshelfActivityMainBinding



class MainActivity :BaseActivity() {
    lateinit var binding:BookshelfActivityMainBinding

    override fun getRootView(): View? {
        //return super.getRootView()
        binding=BookshelfActivityMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        val trans=supportFragmentManager.beginTransaction()
        trans.replace(R.id.home_frag, BookShelfFragment())
        trans.commit()
    }
}